#include "TcpServer.hpp"

using namespace TcpServerArea;

int main()
{
    USE_CONSOLE_STRATEGY();

    std::shared_ptr<Command> cmd_ptr = std::make_shared<Command>();

    std::shared_ptr<TcpServer> tcp_ptr = std::make_shared<TcpServer>([&cmd_ptr](std::string cmd_str){
        return cmd_ptr->Execute(cmd_str);
    });

    tcp_ptr->InitServer();

    tcp_ptr->Start();
    return 0;
}